package com.project.controller;

import com.project.bean.CountMonthSellBean;
import com.project.service.ICountMonthSellService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("month")
public class CountMonthController {

    private ICountMonthSellService cmsService;
    @RequestMapping("findYear")
    public List<Integer> findYear(){
        return cmsService.findYear();
    }

    @RequestMapping("findMoneyByMonth")
  public   List<CountMonthSellBean> findMoneyByMonth(String year){
      return findMoneyByMonth(year);
  }
}
